package com.panshi.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/4 0004 下午 2:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("文章评论表")
public class ArticleReviewsVO implements Serializable {

    @ApiModelProperty("文章评论id")
    private int arid;
    @ApiModelProperty("评论用户id")
    private int uid;
    @ApiModelProperty("评论用户名字")
    private String name;
    @ApiModelProperty("用户头像")
    private String imgpath;
    @ApiModelProperty("评论文章id")
    private int aid;
    @ApiModelProperty("父评论id")
    private int parentid;
    @ApiModelProperty("层级")
    private String depth;
    @ApiModelProperty("评论内容")
    private String ar_content;
    @ApiModelProperty("评论时间")
    private Date ar_time;
    @ApiModelProperty("点赞量")
    private int read_like;
    @ApiModelProperty("状态0上架1下架")
    private int state ;
    @ApiModelProperty("创建时间")
    private Date created_time;
    @ApiModelProperty("子评论数")
    private int sum;
    @ApiModelProperty("被回复父评论id")
    private int parentids;
    @ApiModelProperty("被回复层级")
    private String depths;
    @ApiModelProperty("被回复评论")
    private String ar;
    @ApiModelProperty("被回复用户名")
    private String names;
    @ApiModelProperty("被回复用户头像")
    private String img;
//    @ApiModelProperty("存储子评论")
//    List<ArticleReviewsVO> children;
}
